<div #container class="container">
    <div #rotateDiv class="rotateDiv01" [ngStyle]="{'left': rotateDivLeft}">
        <div *ngIf="tableData.length;else elseBlock">
            <div nz-row>
                <div nz-col nzSpan="24">
                    <nz-table #nzTable [nzData]="tableData" nzSize="small" nzShowPagination="false" style="width: 100%" nzBordered>
                        <thead>
                            <tr class="colHeaderBackColor">
                            <th nzWidth="70px">类型</th>
                            <th nzWidth="50px">客户</th>
                            <th nzWidth="80px">品名</th>
                            <th nzWidth="70px">规格</th>
                            <th nzWidth="45px" class="align-right">匹数</th>
                            <th nzWidth="60px" class="align-right">公斤</th>
                            <th nzWidth="50px" class="align-right">米数</th>
                            <th nzWidth="70px">供应商</th>
                            <th nzWidth="50px">批号</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr *ngFor="let data of nzTable.data;let index = index" 
                                  [ngClass]="{'colHeaderBackColor': isEven(index)}">

                                <td>{{data.bill_type}}</td><!-- 单据类型 -->
                                <td>{{data.client_name}}</td>
                                <td>{{data.product}}</td>
                                <td>{{data.specification}}</td>
                                <td class="align-right">{{data.pairs}}</td>
                                <td class="align-right">{{data.kilo | number:'1.1-1'}}</td>
                                <td class="align-right">{{data.meter | number:'1.1-1'}}</td>
                                <td>{{data.working_company}}</td>
                                <td>{{data.pairsno}}</td>

                            </tr>

                            <tr>
                                <td>汇总：</td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td class="align-right">{{ agg_pair | number:'1.0-0' }}</td>
                                <td class="align-right">{{ agg_kilo | number:'1.1-1' }}</td>
                                <td class="align-right">{{ agg_meter | number:'1.1-1' }}</td>
                                <td></td><td></td>
                            </tr>

                        </tbody>
                    </nz-table>
                </div>
            </div>
        </div>
    </div>
</div>
<div nz-row>
    <div nz-col nzSpan="24">
        <ng-template #elseBlock>{{ noDataTip }}</ng-template>
    </div>
</div>
